package com.example.demo.service;

import com.example.demo.entity.MusicDaily;
import com.example.demo.mapper.MusicDailyMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MusicDailyImpl implements MusicDailyService {

    @Autowired
    private MusicDailyMapper musicDailyMapper;

    @Override
    public List<MusicDaily> getDailyPlaybackByUserId(int userId) {
        return musicDailyMapper.selectDailyPlaybackByUserId(userId);
    }
}
